package com.rc.saas.tenant.service.order;


import com.github.pagehelper.PageInfo;
import com.rc.saas.tenant.base.BaseService;
import com.rc.saas.tenant.mapper.order.OrderDetailMapper;
import com.rc.saas.tenant.model.elec.ElecStationPrice;
import com.rc.saas.tenant.model.order.OrderDetail;
import com.rc.saas.tenant.model.order.OrderDetailExample;
import com.rc.saas.tenant.search.order.OrderDetailSearch;
import com.rc.saas.tenant.vo.order.OrderDetailPrintVo;
import com.rc.saas.tenant.vo.order.OrderDetailResult;
import com.rc.saas.tenant.vo.statistics.StatisticsQueryVo;

import java.util.List;

public interface OrderDetailService extends BaseService<Long, OrderDetail, OrderDetailExample, OrderDetailMapper> {
    /**
     * 通过迁移ID查询
     */
    OrderDetail selectOrderDetailByMigrateId(String tenantCode, Long migrateId);

    List<OrderDetailPrintVo> exportOrderDetail(OrderDetailSearch orderDetailSearch);

    PageInfo<OrderDetailResult> searchByCondition(OrderDetailSearch orderDetailSearch);

    List<OrderDetailPrintVo> exportOperatorPowerTimePeriod(List<ElecStationPrice> stationPriceList, StatisticsQueryVo statisticsQueryVO);
}
